package com.dsg.entity.contact;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * CONTACT LOG主表
 * </p>
 *
 * @author system
 * @since 2020-10-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("dsg_contact_log")
@ApiModel(value="DsgContactLog对象", description="CONTACT LOG主表")
public class DsgContactLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("OID")
    private String oid;

    @ApiModelProperty(value = "个案编号")
    @TableField("CASE_CODE")
    private String caseCode;

    @ApiModelProperty(value = "客户名称（中文）")
    @TableField("CUS_NAME_CN")
    private String cusNameCn;

    @ApiModelProperty(value = "客户名称（英文）")
    @TableField("CUS_NAME_EN")
    private String cusNameEn;

    @ApiModelProperty(value = "客户编号")
    @TableField("CUS_CODE")
    private String cusCode;

    @ApiModelProperty(value = "客户状态")
    @TableField("CUS_STATUS")
    private Boolean cusStatus;

    @ApiModelProperty(value = "联系方式")
    @TableField("CONTACT_WAY")
    private String contactWay;

    @ApiModelProperty(value = "记录时间")
    @TableField("LOG_TIME")
    private Date logTime;

    @ApiModelProperty(value = "对方名称")
    @TableField("OTHER_NAME")
    private String otherName;

    @ApiModelProperty(value = "客户答复")
    @TableField("CUS_REPLY")
    private String cusReply;

    @ApiModelProperty(value = "客户反映")
    @TableField("CUS_REFLECT")
    private String cusReflect;

    @ApiModelProperty(value = "传送文件")
    @TableField("DELIVERY_TYPE")
    private Integer deliveryType;

    @ApiModelProperty(value = "地址")
    @TableField("DELIVERY_ADDR")
    private String deliveryAddr;

    @ApiModelProperty(value = "是否跟进")
    @TableField("IS_FOLLOW")
    private Integer isFollow;

    @ApiModelProperty(value = "下次跟進日期")
    @TableField("NET_DATE")
    private Date netDate;

    @ApiModelProperty(value = "跟进同事")
    @TableField("BRF_MAN")
    private String brfMan;

    @ApiModelProperty(value = "創建人")
    @TableField("CREATER")
    private String creater;

    @ApiModelProperty(value = "創建時間")
    @TableField("CREATE_TIME")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    @TableField("UPDATER")
    private String updater;

    @ApiModelProperty(value = "更新時間")
    @TableField("UPDATE_TIME")
    private Date updateTime;

    @ApiModelProperty(value = "日志类型")
    @TableField("LOG_TYPE")
    private Integer logType;

    @ApiModelProperty(value = "个案种类")
    @TableField("CASE_TYPE")
    private Integer caseType;

    @ApiModelProperty(value = "企業編號")
    @TableField("ENT_CODE")
    private String entCode;

    @ApiModelProperty(value = "子表集合")
    @TableField(exist = false)
    private List<DsgContactLogSub> dsgContactLogSubList;
}
